
use super::response::Response;
use super::request::Request;
use async_std::net::{TcpListener,Shutdown, TcpStream};
use async_std::prelude::*;

pub struct Router<F>{
    pub router:&'static str,
    pub callback:F
}
impl<F> Router<F>
{
    pub fn new(path:&'static str,f:F)->Self
    where
        F: Fn(Request,Response) + Send,
    {
        Router{
            router:path,
            callback:f
        }
    }
}
